<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("log_title")}' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/js/My97DatePicker/WdatePicker.js"></script>
		<%@ include file="../commonPage/message.jsp"%>
	</head>
	<body>
		<h2>
			<s:property value='%{getText("current_position")}' />${parentMenu}>>${currentMenu}
		</h2>
		<div class="main">
			<s:form action="logAction!findAll" method="post" theme="simple">
			<fieldset class="fieldSearch">
					<legend>
						<s:property value='%{getText("log_legend")}' />
					</legend>
					<table border="0" cellspacing="0" cellpadding="0">
				<tr>
				<td align="right" class="p_8"><s:property value='%{getText("log_td1")}' /></td><td><s:select list="#session.userList" name="userName" listKey="userName" listValue="userName" headerKey="" headerValue="全部"></s:select></td>
				<td align="right" class="p_14"><s:property value='%{getText("log_td2")}' /></td><td><s:textfield name="startTime" cssClass="timeInput" readonly="true"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
					-
					<s:textfield name="endTime" cssClass="timeInput" readonly="true"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" /></td>
				<td align="right" class="p_14" colspan="2"><s:submit value="查询" cssClass="bSearch" /></td>
				</tr>
				</table>
				</fieldset>
				<table border="0" cellpadding="1" cellspacing="1" class="tableList">
					<thead>
						<tr>
							<th width="30" class="number">
								<s:property value='%{getText("log_th1")}' />
							</th>
							<th width="60%">
								<s:property value='%{getText("log_th2")}' />
							</th>
							<th width="17%">
								<s:property value='%{getText("log_th3")}' />
							</th>
							<th width="17%">
								<s:property value='%{getText("log_th4")}' />
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator id="pageBean" value="#session.logBean.list" status="u">
							<tr>
								<td class="number">
									${entity.index+u.index}
								</td>
								<td>
									${pageBean.operation}
								</td>
								<td>
									${pageBean.nameUser}
								</td>
								<td>
									<s:property
										value='#pageBean.dtOperation.toString("yyyy-MM-dd HH:mm:ss")' />
								</td>
							</tr>
						</s:iterator>
						<tr>
							<td colspan="4" class="turnPage">
								<jsp:include flush="true" page="../commonPage/page.jsp">
									<jsp:param name="entity" value="entity" />
								</jsp:include>
							</td>
						</tr>
					</tbody>
				</table>
			</s:form>
		</div>
	</body>
</html>
